package com.whu.waterworks.action;

import com.opensymphony.xwork2.ActionSupport;
import com.whu.waterworks.service.WaterPlantService;

/**
 * 水厂相关个数Action
 * @author wangying
 *
 */
public class WaterPlantNumAction extends ActionSupport{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String waterPlantCode;
	private int num;
	private WaterPlantService waterPlantService;
	/**
	 * 反冲洗水泵个数
	 * @author wangying
	 * @return
	 */
	public String  getBackwashPumpNum()
	{
		num = waterPlantService.getBackwashPumpNum(waterPlantCode);
		return SUCCESS;
	}
	/**
	 * 反冲洗风机个数
	 * @author wangying
	 * @return
	 */
	public String getBackwashFanNum()
	{
		num = waterPlantService.getBackwashFanNum(waterPlantCode);
		return SUCCESS;
	}
	/**
	 * 供水泵个数
	 * @author wangying
	 * @return
	 */
	public String  getSupplyPumpNum() 
	{
		num = waterPlantService.getSupplyPumpNum(waterPlantCode);
		return SUCCESS;
	}
	/**
	 * 取水泵个数
	 * @author wangying
	 * @return
	 */
	public String  getGetPumpNum() 
	{
		num = waterPlantService.getGetPumpNum(waterPlantCode);
		return SUCCESS;
	}
	public String getWaterPlantCode() {
		return waterPlantCode;
	}
	public void setWaterPlantCode(String waterPlantCode) {
		this.waterPlantCode = waterPlantCode;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public WaterPlantService getWaterPlantService() {
		return waterPlantService;
	}
	public void setWaterPlantService(WaterPlantService waterPlantService) {
		this.waterPlantService = waterPlantService;
	}
}
